package com.atguigu.spring5.testdemo;

import com.atguigu.spring5.bean.Emp;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBean3 {
@Test
    public void testBean3(){
    ApplicationContext context=
            new ClassPathXmlApplicationContext("bean3.xml");
    Emp emp =(Emp)context.getBean("emp");
    emp.add();

}
}
